package se.webbzon.oschi01.worldcamera;

import java.awt.Dimension;
import java.awt.image.ImageObserver;

import javax.media.j3d.J3DGraphics2D;

import se.webbzon.oschi01.friendly.Friendly;

public class WorldCameraBackground extends WorldCameraPane {
	
	/*============================================================
	Constructors
	============================================================*/

	/** Creates a new world camera background.  **/
	@Friendly WorldCameraBackground(ImageObserver observer, Dimension d,
									boolean createBackground) {
		super(observer,d);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	/** Paints the background in the Java3d Graphics 2D instance
	 * given by the user */
	public void paint(J3DGraphics2D g3d, ImageObserver observer) {
		g3d.drawAndFlushImage(getLayer().getBufferedImage(), 0, 0, getImageObserver());
	}
	
}
